package rpg.client.model;

import rpg.engine.client.GameObjectInfo;

public class GameObject {
	private final String id;
	public String getId()  {
		return id;
	}
	
	private final Position position;
	public Position getPosition()  {
		return position;
	}
	
	private final String name;
	public String getName()  {
		return name;
	}
	
	private final boolean wearable;
	public boolean isWearable()  {
		return wearable;
	}
	
	public GameObject(GameObjectInfo goi)  {
		super();
		id = goi.getId();
		position = goi.getPosition();
		name = goi.getName();
		wearable = goi.isWearable();
	}
	
	@Override
	public String toString()  {
		return getName() + " (#" + getId() + ")";
	}
}
